/*
 * ClippingLabel.h
 *
 *  Created on: 14.12.2009
 *      Author: apoi
 */

#ifndef CLIPPINGLABEL_H_
#define CLIPPINGLABEL_H_

#include "wplabel.h"

class ClippingLabel : public WPLabel
{

    Q_OBJECT

public:
    ClippingLabel(QWidget *aParent = 0);
    ~ClippingLabel();

    void setText(const QString& aText);
    void setElideMode(Qt::TextElideMode aElideMode) { iElideMode = aElideMode; }
    void resizeEvent(QResizeEvent* e);

private: // Private objects
    QString iFullValue;
    Qt::TextElideMode iElideMode;
};

#endif /* CLIPPINGLABEL_H_ */
